package com.petmall.util;

import com.petmall.entity.Level;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by pig2guang on 2017/5/2.
 */
public class UserUtil {

    public double gold_rate = 0.1;//金币转换率为0.1

    //获取用户id的转换
    public Long getUserId(Object user_id){
        return Long.valueOf(user_id.toString());
    }

    //获取各用户等级的信息
    public List<Level> getLevelsInfo(){
        ArrayList<Level> levels_info = new ArrayList<Level>();
        levels_info.add(new Level(1,"金牌会员",10000));
        levels_info.add(new Level(2,"银牌会员",1000));
        levels_info.add(new Level(3,"铜牌会员",0));
        return levels_info;
    }

}
